package com.cjj.springsecurity.entity;

import lombok.*;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author by BrownC_
 * @date 2021/12/22 09:33:12
 * @email ccc-ju@outlook.com
 */
@Data
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MyGrantedAuthorityUrlMethod implements GrantedAuthority {

    private String url;

    private String method;

    @Override
    public String getAuthority() {
        return this.url + ":" + this.method;
    }
}
